//
//  UIViewController+TZExtension.h
//  TZOCExtension
//
//  Created by Tim.Z on 2017/1/3.
//  Copyright © 2017年 Tim.Z. All rights reserved.
//

#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface UIViewController (TZExtension)

@property (nonatomic, weak, nullable) UIViewController *tz_superVC;

- (void)tz_addRightNavItemWithTitle:(nullable NSString *)title target:(nullable id)target action:(nullable SEL)action;
- (void)tz_addRightNavItemWithImage:(nullable UIImage *)image target:(nullable id)target action:(nullable SEL)action;


/**
 @brief 点击textField或textView以外的view收起键盘
 */
-(void)tz_setupForDismissKeyboard;
- (void)tz_tapAnywhereToDismissKeyboard;

/**
 @brief 配置其他输入控件，例如UISearchBar
 */
@property (weak, nonatomic, nullable) id ortherTextInput;
    //---------------------

@end
NS_ASSUME_NONNULL_END
